import request from '@/utils/request'

export const getUsersList = data => {
  return request({
    url: '/users/getUsersList',
    method: 'post',
    data,
  })
}

export const delUsers = aid => {
  return request({
    url: '/users/del?id=' + aid,
    method: 'delete',
  })
}

export const getUsersDetail = aid => {
  return request({
    url: '/users/edit?id=' + aid,
    method: 'get',
  })
}

export const editUsers = data => {
  return request({
    url: '/users/edit',
    method: 'put',
    data,
  })
}